package vn.edu.hut.soict.translate.wordgraph;

public class Pair {
	private int contentWord;
	private int functionalWord;

	public Pair(int contentWord, int functionalWord) {
		this.contentWord = contentWord;
		this.functionalWord = functionalWord;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + contentWord;
		result = prime * result + functionalWord;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		Pair other = (Pair) obj;
		if (contentWord != other.contentWord) {
			return false;
		}
		if (functionalWord != other.functionalWord) {
			return false;
		}
		return true;
	}
}
